package top.lixunda.ecommerce.server.auth.api.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.lixunda.common.validate.annotation.XumDefault;
import top.lixunda.common.validate.annotation.XumNotNull;

import java.util.List;

/**
 * 普通email消息DTO，只有文本，没有网页
 *
 * @author Xumda
 * @version time:2019/12/17 15:40
 */
@ApiModel(value = "普通email消息DTO", description = "普通email消息DTO，只有文本，没有网页")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EmailNormalDTO {

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", notes = "不能为空")
    @XumNotNull
    private List<String> accounts;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @XumDefault("")
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    @XumDefault("")
    private String content;

}
